package com.engine4cloud.tdf.supervision.convert;

import com.engine4cloud.tdf.supervision.dto.create.TerminalBaseInfoCreateDTO;
import com.engine4cloud.tdf.supervision.dto.result.TerminalBaseInfoResultDTO;
import com.engine4cloud.tdf.supervision.dto.update.TerminalBaseInfoUpdateDTO;
import com.engine4cloud.tdf.supervision.entity.JzdxEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface JzdxTerminalConvert {
    JzdxTerminalConvert INSTANCE = Mappers.getMapper(JzdxTerminalConvert.class);

    JzdxEntity create(TerminalBaseInfoCreateDTO s, Long deptId, Long tenantId);

    JzdxEntity update(TerminalBaseInfoUpdateDTO s);

    TerminalBaseInfoResultDTO convert(JzdxEntity s);
}
